package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TClass;
import com.bootdo.project.dao.TClassMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TClassService {

	@Autowired
    private TClassMapper tClassMapper;
    
    public int deleteByPrimaryKey(Integer id){
        return tClassMapper.deleteByPrimaryKey(id);
    }

    public int insert(TClass record){
        return tClassMapper.insert(record);
    }

    public int insertSelective(TClass record){
        return tClassMapper.insertSelective(record);
    }

    public TClass selectByPrimaryKey(Integer id){
        return tClassMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TClass record){
        return tClassMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TClass record){
        return tClassMapper.updateByPrimaryKey(record);
    }

    public List<TClass> selectByCondition(TClass record){
        return tClassMapper.selectByCondition(record);
    }

    public List<TClass> selectAll(){
        return tClassMapper.selectAll();
    }

    public List<TClass> selectByPage(Page<TClass> page){
        return tClassMapper.selectByPage(page);
    }

    public Integer count(TClass record){
        return tClassMapper.count(record);
    }

    public int deleteByCondition(TClass record){
        return tClassMapper.deleteByCondition(record);
    }

}
